<?php
/**
 * Created by PhpStorm.
 * User: ownfi
 * Date: 2017-04-09
 * Time: 13:30
 */

namespace App\Services\Factory\Payment;


use App\Common\Constant\Params;
use App\Services\Factory\PaymentFactory;
use Log;

/**
 * 余额支付
 * Class Balance
 * @package App\Services\Factory\Payment
 */
class Balance extends PaymentFactory
{
    public function form($order_number,$amount,$redirect_url,$description,array $attach)
    {
        return view('payform/balance',[
            'trade_number'=>$order_number,'amount'=>$amount,'payment_method'=>Params::PAY_METHOD_BALANCE,
            'redirect_url'=>$redirect_url,
        ]);
    }

    public function notify()
    {
        //
    }

    public function log($message)
    {
        Log::notice('Balance pay log: '.$message);
    }

}